<template>
  <div>
    旧 - {{listData}}
    <button @click="updateClick">我需要通过点击把Dto改了</button>
  </div>
</template>

<script>
export default {
  name: 'Tab-e',
  props: {
    listData: {
      typeof: Array,
      default: ''
    }
  },
  methods: {
    updateClick () {
      // 过滤大于20的数
      const res = this.listData.filter(item => item.Dto > 20)
      this.$emit('UpdateDto', res)
    }
  }

}
</script>

<style lang="scss" scoped>

</style>
